package com.yiji.fintech.musfinance.common.strategy.context;

import com.yiji.fintech.musfinance.center.base.result.ResultFacade;
import com.yiji.fintech.musfinance.common.domain.base.BaseDomain;
import com.yiji.fintech.musfinance.common.strategy.base.AbstractSendGateWayBaseStrategy;
import lombok.Data;

/**
 * 发送网关策略类
 * Created by ouwen@yiji.com} on 2017/8/9.
 */
@Data
public class SendGeteWayContext {

    private AbstractSendGateWayBaseStrategy sendGeteWayStrategy;

    public SendGeteWayContext(AbstractSendGateWayBaseStrategy sendGeteWayStrategy) {
        this.sendGeteWayStrategy = sendGeteWayStrategy;
    }
    public void doSendGateWay(BaseDomain domain, ResultFacade result){
        sendGeteWayStrategy.doExcute(domain,result);
    }
}
